package cn.matezk.lianlian.dao;

import cn.matezk.lianlian.model.DeviceBind;
import org.apache.ibatis.annotations.Param;

public interface DeviceBindDao {
    DeviceBind selectByAppKeyProductDevice(@Param("appKey") String appKey, @Param("productId") String productId, @Param("deviceName") String deviceName);
    DeviceBind selectByProductDevice(@Param("productId") String productId, @Param("deviceName") String deviceName);
    DeviceBind selectByDeviceName(String deviceName);
    int bind(@Param("appKey") String appKey, @Param("productId") String productId, @Param("deviceName") String deviceName);
    int unbind(@Param("productId") String productId, @Param("deviceName") String deviceName);
}
